home *** CD-ROM | disk | FTP | other *** search
/ The Very Best of Atari Inside / The Very Best of Atari Inside 1.iso / mint / mnt99pc / puremint.txt < prev   
Text File  |  1993-01-29  |  3KB  |  78 lines

  1. How to compile MiNT 0.99 PL2 with PureC
  2. ---------------------------------------
  3.  
  4. Julian F. Reschke, 29. Januar 1993
  5. email: julian@math.uni-muenster.de
  6.  
  7.  
  8. (1) What you'll need
  9.  
  10. The original MiNT 0.99 PL2 source distribution (mint99s.zoo). A working 
  11. `patch.ttp'. A command line shell with I/O redirection, like `Mupfel' or 
  12. all these fine Unix shells for MiNT.
  13.  
  14.  
  15. (2) What to do
  16.  
  17. Make a directory and unpack mint99s.zoo in it. Then, make a subdirectory 
  18. called `purec'. Copy all files from *this* archive (mnt99pc.zoo) into this 
  19. subdirectory. Then go back to the MiNT source directory and apply the 
  20. diffs:
  21.  
  22.     patch < purec\diffs
  23.  
  24.  
  25. (3) DEFINEs
  26.  
  27. You will want to undefine MULTITOS if you're not going to use the 
  28. current beta release of Atari's multitasking AES. And please note that the 
  29. ROM AES doesn't work at all with MiNT's memory protection, so you'll have 
  30. to turn that off when running on an 68030 Atari (see the command line 
  31. switches).
  32.  
  33.  
  34.  
  35. (4) Special files
  36.  
  37. First of all, you need a special osbind.h. This is because Pure's own 
  38. version differs in some small details from the GCC header files. You 
  39. can't use Pure's tos.h, either, because in its latest versions it already 
  40. defines some of MiNT's data structures. You can either copy osbind.h into 
  41. the MiNT source directory or copy it into your PureC include folder. If 
  42. you are using the MiNT library, all should work fine without this file.
  43.  
  44. This is all what's needed. You can either use the command line versions 
  45. of PureC, or you can use the PureC shell (copy mintpure.prj to the source 
  46. directory). I am compiling MiNT with GNU make (latest version at 
  47. atari.archive.umich.edu should work fine) and a self-made 'cc' command, 
  48. that I've specially written for the PureC command line versions (see 
  49. makefile.pcc). This tool is still being tested, and I've not yet decided 
  50. how to distribute it. If you are interested, write to me.
  51.  
  52. If you're going to use the PureC shell, you'll have to 'manually' 
  53. translate the .spp files to the PASM syntax using asmtrans.ttp. The 
  54. syntax is
  55.  
  56. asmtrans -purec -o outfile.s outfile.spp
  57.  
  58. genmagic.ttp is needed to create the file magic.i, which in turn is 
  59. included by the .spp files.
  60.  
  61.  
  62. (5) Things to do
  63.  
  64. So far, I've made no attempt to translate asmtrans with PureC. Try it 
  65. yourself (you'll need alloca; might work with the MiNT library version 
  66. for PureC) or compile them with gcc.
  67.  
  68.  
  69. (6) Caveats
  70.  
  71. This is a preliminary 'port'. It seems to work fine on my machine, but 
  72. this guarantees nothing:
  73.  
  74. There's still a conflict in the way PureC saves registers with what MiNT 
  75. file system drivers or device drivers expect. You will have to use PureC 
  76. 1.1 to get the correct behaviour.
  77.  
  78.